//tactile.logger.setConfig({
//	level : tactile.logger.level.info
//});

var router = new Router();

tactile.page.onready(function() {

	ScreenLayouter.getDevice();
	
	if (ScreenLayouter.device == "smartphone") {
		router.loadSmartphoneContent();
	}else if(ScreenLayouter.device == "tablet") {
		router.loadTabletContent();
	}else {
		console.log("Unsupported Device");
		router.loadTabletContent();
	}
	
});